<template>
  <el-footer class="custom-footer">
    <div class="footer-content">
      <!-- 公司信息部分 -->
      <div class="footer-section company-info">
        <img src="../images/logo.png" alt="图锐配音" class="footer-logo">
        <p class="company-desc">专业的AI配音平台，让创作更简单</p>
        <div class="social-links">
          <el-button circle class="social-btn">
            <el-icon><ChatDotRound /></el-icon>
          </el-button>
          <el-button circle class="social-btn">
            <el-icon><Share /></el-icon>
          </el-button>
          <el-button circle class="social-btn">
            <el-icon><Link /></el-icon>
          </el-button>
        </div>
      </div>

      <!-- 快速链接 -->
      <div class="footer-section quick-links">
        <h3>快速链接</h3>
        <ul>
          <li><a href="#">首页</a></li>
          <li><a href="#">产品介绍</a></li>
          <li><a href="#">价格方案</a></li>
          <li><a href="#">使用教程</a></li>
        </ul>
      </div>

      <!-- 帮助中心 -->
      <div class="footer-section help-center">
        <h3>帮助中心</h3>
        <ul>
          <li><a href="#">常见问题</a></li>
          <li><a href="#">使用条款</a></li>
          <li><a href="#">隐私政策</a></li>
          <li><a href="#">关于我们</a></li>
        </ul>
      </div>

      <!-- 联系方式 -->
      <div class="footer-section contact-info">
        <h3>联系我们</h3>
        <div class="contact-item">
          <el-icon><Location /></el-icon>
          <span>湖南省怀化市XXXX</span>
        </div>
        <div class="contact-item">
          <el-icon><Phone /></el-icon>
          <span>400-XXX-XXXX</span>
        </div>
        <div class="contact-item">
          <el-icon><Message /></el-icon>
          <span>support@xxx.com</span>
        </div>
      </div>
    </div>

    <!-- 底部版权信息 -->
    <div class="footer-bottom">
      <div class="copyright">
        <p>© 2024 图锐配音 版权所有</p>
        <p>怀化市图锐电子商务有限公司</p>
        <p>湘ICP备XXXXXXXX号-1</p>
      </div>
    </div>
  </el-footer>
</template>

<script setup lang="ts">
import { ChatDotRound, Share, Link, Location, Phone, Message } from '@element-plus/icons-vue'
</script>

<style scoped>
.custom-footer {
  background: linear-gradient(to bottom, #2c3e50, #1a252f);
  padding: 60px 0 20px;
  color: #fff;
  height: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 0 20px;
}

/* 公司信息样式 */
.company-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}

.company-desc {
  color: #a8b2b9;
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* 链接部分样式 */
.footer-section h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #3498db;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #a8b2b9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #3498db;
}

/* 联系信息样式 */
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #a8b2b9;
}

.contact-item .el-icon {
  color: #3498db;
}

/* 底部版权信息 */
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  color: #a8b2b9;
  font-size: 0.9rem;
}

.copyright p {
  margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
  }
}

/* 暗色模式适配 */
.dark .custom-footer {
  background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
}

.dark .social-btn {
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .footer-section h3::after {
  background: #64B5F6;
}

.dark .footer-section ul li a:hover {
  color: #64B5F6;
}

.dark .contact-item .el-icon {
  color: #64B5F6;
}
</style> 